package demo02;

import java.util.Scanner;

public class Demo01Anonymous {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        int num=sc.nextInt();
//        ===========================================
//        int num=new Scanner(System.in).nextInt();
//        System.out.println(num);
//          ==========================================
//        Scanner sc = new Scanner(System.in);
//        methodParam(sc);
//        =============================================
//        methodParam(new Scanner(System.in));
//        =====================================
        Scanner sc=methodReturn();
        System.out.println(sc.nextInt());
    }

    public static void methodParam(Scanner sc) {
        int num = sc.nextInt();
        System.out.println("传入的参数是" + num);
    }
    public static Scanner methodReturn(){
        return new Scanner(System.in);
    }
}
